(function(){
	window.onload = function(){
		var mapDiv = document.getElementById('map');
		var latLng = new google.maps.LatLng(16.09, 110.71);

		var options = {
			center: latLng,
			zoom: 6, 
			mapTypeId: google.maps.MapTypeId.ROADMAP,
			// disableDefaultUI: true
			mapTypeControl: true,
			// mapTypeControlOptions: {
			// 	position: google.maps.ControlPosition.BOTTOM
			// }
		}

		var map = new google.maps.Map(mapDiv, options);

		document.getElementById('getValues').onlick = function(){
			alert('Current zoom level is: ' + map.getZoom());
			alert('Current center is: ' + map.getCenter());
			alert('The current mapType is: ' + map.getMapTypeId());
		}
	};	
})();
